3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
Figure 6 shows a triangle.
A triangle is a closed plane figure defined by three vertices. Attributes may be assigned to each vertex of a triangle and also to its entire face.
Vertex attribute set list (optional), attribute set (optional). A vertex attribute set list may be used to attach attributes to one or more vertices of the triangle. An attribute set may be used to attach attributes to the entire face of the triangle.
Container (
Triangle (
-1 -0.5 -0.25
0 0 0
-0.5 1.5 0.45
)
Container (
VertexAttributeSetList ( 3 Exclude 0 )
Container (
AttributeSet ( )
DiffuseColor ( 1 0 0 )
)
Container (
AttributeSet ( )
DiffuseColor ( 0 1 0 )
)
Container (
AttributeSet ( )
DiffuseColor ( 0 0 1 )
)
)
Container (
AttributeSet ( )
DiffuseColor ( 0.8 0.5 0.2 )
)
)
Previous | QD3D Book | Overview | Chapter Contents | Next |